home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / JOHNLOVE / C_SOURCE / CMYMISC.H < prev    next >
Text File  |  1992-02-07  |  2KB  |  66 lines

  1. /*********************************************************
  2.  "CmyMisc.h"
  3.  
  4.  by John A. Love, III [Washington Apple Pi Users' Group]
  5.  
  6.  using Symantec's "THINK C", v 5.0.1
  7.  ... as derived from their "TCL Starter" files
  8.  *********************************************************/
  9.  
  10.  
  11.  
  12.  
  13. #define    _H_CmyMisc
  14.  
  15.  
  16. #include <CApplication.h>
  17. #include <CDocument.h>
  18. #include <CPicture.h>
  19. #include <TBUtilities.h>
  20.  
  21. #include "CmyGlobals.h"
  22. #include "CmyBitMapPane.h"
  23.  
  24.  
  25. struct CSpiffyGraphics : CDocument        {
  26.  
  27.     // Instance variable(s):
  28.     CmyBitMapPane    *bragOSBMPane;        /* For spiffy iris methods: */
  29.     PicHandle        centeredPic;
  30.     CPicture        *pict;                /* For spiffy scroll methods. */
  31.     
  32.     // Instance Methods:
  33.     
  34.         /* Contruction/Destruction */
  35.     void    ISystem7Braggart (CApplication *itsSupervisor);
  36.     void    DisposeSystem7Braggart (void);
  37.     
  38.     void    ISpiffyIris (CApplication *itsSupervisor);
  39.     void    DisposeSpiffyIris (void);
  40.     
  41.     void    ISpiffyScroll (CApplication *itsSupervisor);
  42.     void    DisposeSpiffyScroll (void);
  43.     
  44.         /* Accessing */
  45.     void    DisplaySystem7Braggart (void);
  46.     void    DisplaySpiffyIris (void);
  47.     void    DisplaySpiffyScroll (void);
  48.  
  49. };
  50.  
  51.  
  52. // Other Prototypes:
  53. Boolean        AnyKeyHasBeenPressed (void);
  54. Boolean        MouseHasBeenClicked (void);
  55. void        CenterRects (Rect *srcRect, Rect *withinRect);
  56. Boolean        aDAisUp (WindowPeek macWindow);
  57. void        PlaySound (Str255 mySound);
  58. long        GetStripAddressMask (void);
  59. Ptr            QuickStrip (long *myPtr);
  60. Boolean        WINDResourceHasSystem7Field (CWindow *theWindow);
  61. GDHandle    GetMaxAreaDevice (Rect *globalRect);
  62.  
  63.  
  64.  
  65.  
  66. /* end: "CmyMisc.h" */